package cn.stylefeng.guns.modular.school.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 签到信息
 * </p>
 *
 * @author 
 * @since 2020-05-03
 */
@TableName("xx_course_sign")
@Data
public class CourseSign implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 课表id
     */
    @TableField("school_table_id")
    private Integer schoolTableId;

    /**
     * 教师学生id
     */
    @TableField("student_teacher_id")
    private Integer studentTeacherId;

    /**
     * 1 学生 2教师
     */
    @TableField("type")
    private Integer type;

    /**
     * 签到日期
     */
    @TableField("sign_date")
    private Date signDate;
    @TableField("sign_place")
    private String signPlace;
    @TableField("sign_or_leave")
    private String signOrLeave;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSchoolTableId() {
        return schoolTableId;
    }

    public void setSchoolTableId(Integer schoolTableId) {
        this.schoolTableId = schoolTableId;
    }

    public Integer getStudentTeacherId() {
        return studentTeacherId;
    }

    public void setStudentTeacherId(Integer studentTeacherId) {
        this.studentTeacherId = studentTeacherId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Date getSignDate() {
        return signDate;
    }

    public void setSignDate(Date signDate) {
        this.signDate = signDate;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "CourseSign{" +
        "id=" + id +
        ", schoolTableId=" + schoolTableId +
        ", studentTeacherId=" + studentTeacherId +
        ", type=" + type +
        ", signDate=" + signDate +
        ", createTime=" + createTime +
        "}";
    }
}
